package edu.ensabap.matricula.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import edu.ensabap.matricula.bean.milagrosDTO;
import edu.ensabap.matricula.dao.MilagrosDAO;



@Service
public class MilagrosService {

	
	@Autowired
	private MilagrosDAO milagrosDAO;
		
	
	//puente listar milagros
	public List<milagrosDTO> listarMilagros(milagrosDTO milagros){
		
		return milagrosDAO.listar(milagros);
		
	}
	
	public int insertarMilagros(milagrosDTO milagros){
		return milagrosDAO.insertar(milagros);
	}
	
	public int deleteMilagros(milagrosDTO milagros){
		return milagrosDAO.delete(milagros);
	}
	
	public int actualizarMilagros(milagrosDTO milagros){
		return milagrosDAO.actualizar(milagros);
		
	}
}
